package drivers;

import common.Utils;
import server.ClientImpl;

import java.rmi.RemoteException;
import java.util.Date;

public class downLoad {
    public static void main(String[] args) {
        test2();
    }

    public static void test2(){
        ClientImpl client = new ClientImpl(Utils.remoteIp,Utils.NN_PORT);
//        ClientImpl client = new ClientImpl("localhost",30000);
        try {
            System.out.println("下载文件测试");
            Date date = new Date();
            System.out.println(date);
            boolean flag = client.getFile("test", "test", "hdfs-implementation//src//d.zip");
//            boolean flag = client.getFile("test", "test4", "hdfs-implementation//src//d.docx");
            System.out.println(flag);
            date = new Date();
            System.out.println(date);
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
}
